hexo 下的分类和表签无法显示

在命令行中输入hexo new page tags

1
$ hexo new page tags

这时会在在sources/tags里面有个index.md的文件,打开这个文件编辑

1
2
3
4
5
---
title: tags
date: 2017-08-28 08:33:46
type: "tags"
---

type: 改成tags

在主题配置文件中,在menu项下,要把tags页打开如

1
2
3
4
5
6
menu:
home: /
archives: /archives
tags: /tags //确保标签页已打开
categories: /categories
about: /about

在你要发布的文章中添加标签

1
2
3
4
5
6
---
title: hexo 下的分类和表签无法显示
date: 2017-08-28 08:33:46
tags: [hexo]
categories: [hexo]
---

所有冒号后面都有个空格

-------------本文结束感谢您的阅读-------------
geekspeng wechat
欢迎您扫一扫上面的二维码,订阅我的微信公众号!
0%